
const { ccclass, property } = cc._decorator;

@ccclass
export default class Clouds extends cc.Component {
    @property(cc.Node)
    private cloudNode: cc.Node = null;
    @property(cc.SpriteFrame)
    private cloudSpriteArr:cc.SpriteFrame[] = []
    start(){
        
    }
    public initItem(spriteIndex:number,scale:number){
        this.cloudNode.getComponent(cc.Sprite).spriteFrame = this.cloudSpriteArr[spriteIndex]
        this.cloudNode.scale = scale
    }
}

